<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/oversea.js"></script>

<title>发货运输任务</title>
<body class="withvernav">
<div class="bodywrapper"> {{include file='/public/leftmenu.tpl'}}
  <div class="centercontent">
    <div class="pageheader notab">
      <h1 class="pagetitle">发货运输任务</h1>
      <span class="pagedesc"></span>
      <div class="menulist">
        <ul class="profile_summary">
          <li class="current"></li>
        </ul>
      </div>
    </div>
    <!--pageheader-->
    
    <div id="contentwrapper" class="contentwrapper">
      <div id="basicform" class="subcontent">
        <form class="stdform stdform2"  id="theFrom" method="post" action="/oversea/savecompare">
        
        
        <div class="contenttitle2">
            <h3>基本信息</h3>
          </div>
          <div class="x_content" style="overflow-x:auto;">
             <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
          
            <thead>
              <tr>
                <th class="head1">运输编号</th>
                {{if $detail.transportmode}}
                <th class="head1">运输方式</th>{{/if}}
                 <th class="head1">备货时间</th>
                  <th class="head1">发货时间</th>
                 {{if $detail.shopname}}
                <th class="head1">店铺</th>
                {{/if}}
                <th class="head1">始发地</th>
                <th class="head1">目的地</th>
                
               
              </tr>
            </thead>
            <tbody>
            
           
            <tr>
              <td class="head1">{{$detail.tasknumber}}</td>
              {{if $detail.transportmode}}
              <td class="head0">{{$detail.transportmode}}</td>{{/if}}
               <td class="head0">{{$detail.beiprojectdate}}</td>
               <td class="head0">{{$detail.projectdate}}</td>
                {{if $detail.shopname}}
              <td>{{$detail.shopname}}</td>
               {{/if}}
              <td class="center">{{$detail.startingplace}}</td>
              <td class="center">{{$detail.destination}}</td>
            </tr>
              </tbody>
            
          </table>
          </div>
         
         
         
         
          
           {{if $boxlistcount >0}}
          <div class="contenttitle2">
            <h3>箱子列表</h3>
          </div>
           <div class="x_content" style="overflow-x:auto;">
          <table cellpadding="0" cellspacing="0" border="0" class="stdtable" id="addTable" >
            <colgroup>
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            </colgroup>
            <thead>
              <tr>
                <th class="head0">箱号</th>
                <th class="head1">装箱日期</th>
                <th class="head0">装箱人</th>
                <th class="head1">规格</th>
                 <th class="head1">SKU数</th>
                <th class="head1">总数量</th>
                 <th class="head1">成本</th>
                <th class="head1">重量</th>
                <th class="head1">编辑</th>
              </tr>
            </thead>
            <tbody>
            
            {{foreach from=$boxlist item=li key=key}}
            <tr>
              <td>{{$li.boxnumber}}
               </td>
              <td>{{$li.createtime}}</td>
              <td>{{$li.createname}}</td>
              <td class="center">{{$li.specifications}} </td>
               <td class="center">{{$li.sku}} </td>
            <td class="center"><input type="hidden" name="quantity[]" value="{{$li.quantity}}">{{$li.quantity}}</td>
             <td class="center"><input type="hidden" name="allprice[]" value="{{$li.allprice}}"><input type="hidden" name="cartonscost[]" value="{{$li.cartonscost}}">{{$li.allprice}}<input type="hidden" name="skunum[]" value="{{$li.sku}}"></td>
              <td class="center">{{$li.weight}}</td>
               <td class="head1"><a href="/oversea/showbox/{{$li.id}}">查看</a> </td>
            </tr>
            {{/foreach}}
              </tbody>
            
            <tfoot>
            </tfoot>
          </table>
          </div>
          {{/if}}
           <div class="contenttitle2">
            <h3>合计信息</h3>
          </div>
        
          <div class="bq2 currentstatus marginbottom0">
          商品金额：{{$detail.totalamount}} <br>
          包装成本：{{$detail.boxlistcos}}<br>
          {{if $detail.actual_freight}}
          真实运费：{{$detail.actual_freight}}<br>
          {{else}}
          预估运费：{{$detail.freight}}<br>
          {{/if}}
          合计金额：{{$detail.total}}<br>
  					
                    <br>
                      SKU数 ：{{$detail.skunum}}个&nbsp;&nbsp;&nbsp;&nbsp;数量: {{$detail.totalnum}}&nbsp;&nbsp;&nbsp;&nbsp; 
                      {{if $detail.boxlistcount>0}}
                      <br> 箱数：{{$detail.boxlistcount}}箱&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                      {{/if}}
                    </div>
              
              {{if $statuslist}}
          <div class="contenttitle2">
            <h3>运输状态跟踪</h3>
          </div>
           <div class="x_content" style="overflow-x:auto;">
          <table cellpadding="0" cellspacing="0" border="0" class="stdtable">
            <colgroup>
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            <col class="con0" />
            <col class="con1" />
            </colgroup>
            <thead>
              <tr>
                <th class="head0">发货时间</th>
                <th class="head1">到货时间</th>
                <th class="head0">重量KG</th>
             
                <th class="head0">提货进仓费</th>
                <th class="head0">报关费</th>
                   <th class="head0">运费</th>
                <th class="head0">关税</th>
                <th class="head0">其他费用</th>
                <th class="head1">运费说明</th>
                <th class="head0">参考号</th>
                <th class="head0">备注</th>
                <th class="head0">承运人</th>
                <th class="head0">运输方式</th>
                <th class="head0">创建者</th>
                <th class="head0">创建时间</th>
                <th class="head0">操作</th>
              </tr>
            </thead>
            <tbody>
            
            {{foreach from=$statuslist item=li key=key}}
            <tr>
              <td>{{$li.projectdate}}</td>
              <td>{{$li.endprojectdate}}</td>
              <td>{{$li.weight}}</td>
             
               <td>{{$li.delivery_fee}}</td>
                <td>{{$li.clearance_fee}}</td>
                 <td>{{$li.freight}}</td>
                 <td>{{$li.tariffs_fee}}</td>
                  <td>{{$li.other_fee}}</td>
              <td class="center">{{$li.projectdateremake}}</td>
              <td class="center">{{$li.ck}}</td>
              <td class="center">{{$li.cargostatus}}</td>
              <td class="center">{{$li.carrier}}</td>
              <td class="center">{{$li.transportmode}}</td>
              <td class="center">{{$li.createUser}}</td>
              <td class="center">{{$li.instime}}</td>
              <td class="head0"> 
              {{if $mod==1 || $department ==1 || $department==2}}
              <a href="javascript:void(0)" onClick="ediplan({{$li.id}})"> 修改</a>
              {{if $detail.status !=5}}｜<a href="javascript:void(0)" onClick="delstatuslist({{$li.id}},{{$detail.id}})">删除</a>{{/if}}
              {{/if}}
              </td>
            </tr>
            {{/foreach}}
              </tbody>
            
           
          </table>
          </div>
          {{/if}}
          
          <p class="stdformbutton"> <span >
            <input type="hidden" name="groupid" value="{{$detail.groupid}}">
            <input type="hidden" name="transportationplanning_id" value="{{$detail.id}}">
            
            
           
            </span> </p>
        </form>
        <br />
      </div>
      <!--subcontent--> 
      
      <!--subcontent--> 
      
    </div>
    <!--contentwrapper--> 
    
  </div>
  <!-- centercontent --> 
  
</div>
<!--bodywrapper-->
<!--bodywrapper-->
<!-- 模态框（Modal） -->
 <form action="/oversea/ajaxbutton?op=savefuyi"  method="post" name="qaform" id="qaform"  enctype="multipart/form-data" >
 <input type="hidden" id="id" name="ClentID">
  <input type="hidden" id="statusid" name="statusid">
   <input type="hidden" id="sfexpress" value="{{$sfexpress}}">
 <input type="hidden" id="upsexpress" value="{{$upsexpress}}">
 <input type="hidden" id="dhlexpress" value="{{$dhlexpress}}">
  <input type="hidden" id="FedExexpress" value="{{$FedExexpress}}">
    <input type="hidden" id="jiachenexpress" value="{{$jiachenexpress}}">
 <div class="modal fade" id="returndataModal" tabindex="-1" role="dialog" aria-labelledby="returnModalLabel" aria-hidden="true">
   <div class="modal-dialog" style="width:740px;">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" 
               aria-hidden="true">×
            </button>
            <h4 class="modal-title" id="returnModalLabel">
               填写运输相关
            </h4>
         </div>
         <div class="modal-body">
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr >
            <th>承运人
              </th>
            <td align="left"><select class="selection" id="carrier" name="carrier" onBlur="getpriceexpress()">
                <option value="">--请选择--</option>
						     	 {{foreach from=$carrierlist item=li key=key}}
					    			<option value="{{$li}}" {{if $detail.carrier==$li}} selected{{/if}}>{{$li}}</option>
					  	     	{{/foreach}}
              </select></td>
          </tr>
          <tr>
            <th>运输方式
              </th>
            <td  height="25"><select class="selection" id="transportmode" name="transportmode"  style="width:200px;">
                <option value="">-请选择-</option>
 {{foreach from=$transportmodelist item=li key=key}}
					    			<option value="{{$li}}" {{if $detail.transportmode==$li}} selected{{/if}}>{{$li}}</option>
					  	     	{{/foreach}}              </select>
              </select></td>
          </tr>
          <tr>
            <th>发货时间
              </th>
            <td align="left"> <input type="text"  name="projectdate" id="projectdate" value="{{$detail.projectdate}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /></td>
          </tr>
          <tr>
            <th>到货时间
              </th>
            <td align="left"> <input type="text"  name="endprojectdate" id="endprojectdate" value="{{$detail.endprojectdate}} " onClick="WdatePicker({dateFmt:'yyyy-MM-dd '})" class="width100 hasDatepicker" /></td>
          </tr>
           <tr>
            <th>重量
              </th>
            <td align="left"><input type="text" class="width100" id="weight"  name="weight" onKeyUp="value=value.replace(/[^\d.]/g,'')" value="{{$detail.weight}}" onBlur="getpriceexpress()"  /> KG 
            </td>
          </tr>
        
          <tr>
            <th>提货进仓费
              </th>
            <td align="left"><input type="text" class="width100" id="delivery_fee" onKeyUp="value=value.replace(/[^\d.]/g,'')"  name="delivery_fee" value="{{$detail.delivery_fee}}"  />
             </td>
          </tr>
          
          <tr>
            <th>报关费
              </th>
            <td align="left"><input type="text" class="width100" id="clearance_fee" onKeyUp="value=value.replace(/[^\d.]/g,'')"  name="clearance_fee" value="{{$detail.clearance_fee}}"  />
             </td>
          </tr>
            <tr>
            <th>运费
              </th>
            <td align="left"><input type="text" class="width100" id="freight" onKeyUp="value=value.replace(/[^\d.]/g,'')"    name="freight" value="{{$detail.freight}}"  /> 
       		运费说明：<input type="text" class="width100" id="projectdateremake"   name="projectdateremake" value="{{$detail.projectdateremake}}"  /></td>
          </tr>
          <tr>
            <th>关税
              </th>
            <td align="left"><input type="text" class="width100" id="tariffs_fee" onKeyUp="value=value.replace(/[^\d.]/g,'')"  name="tariffs_fee" value="{{$detail.tariffs_fee}}"  />
             </td>
          </tr>
           <tr>
            <th>其他费用
              </th>
            <td align="left"><input type="text" class="width100" id="other_fee" onKeyUp="value=value.replace(/[^\d.]/g,'')"  name="other_fee" value="{{$detail.other_fee}}"  />
             </td>
          </tr>
          <tr>
            <th>参考号
              </td>
            <td align="left"><input type="text" class="width200" id="ck" onKeyUp="value=value.replace(/[^0-9a-zA-Z]/g,'')"    name="ck" value="{{$detail.ck}}"  /></td>
          </tr>
          <tr>
            <th>备注
              </th>
            <td align="left"><textarea name="cargostatus" id="cargostatus" cols="8" rows="8">{{$detail.cargostatus}}</textarea></td>
          </tr>
        </table>
         </div>
         <div class="modal-footer">
            <button type="button" class="btn btn-default" 
               data-dismiss="modal">
               关闭
            </button>
            <button type="button" class="btn btn-primary"  onclick="doqa()">
               提交
            </button>
         </div>
      </div><!-- /.modal-content -->
   </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</form>

</body>
</html>